<link rel="stylesheet" href="__CSS__/booktable.css">
<table class="tb w-100">
    <thead>
    <tr>
        <th colspan="2">商品信息</th>
        <th>单价</th>
        <th>数量</th>
        <th>状态</th>
    </tr>
    </thead>
    <tbody>
    {foreach $goods as $ks => $v}
    <tr>
        <td width="70">
            <img src="{$v['thumb']}" class="book-img">
        </td>
        <td><a href="{:url('home/Book/info', array('bookid' => $v['bookid']))}" target="_blank">{$v['bname']}</a></td>
        <td>￥{$v['price']}</td>
        <td>{$v['number']}</td>
        <td>
            {if $order['status'] == 1}
            <span class="text-danger">待发货</span>
            {elseif $order['status'] == 2}
            <span class="text-info">待收货</span>
            {else}
            <span class="text-success">已完成</span>
            {/if}
        </td>
    </tr>
    {/foreach}
    <tr>
        <td colspan="4" class="text-right">订单总额：</td>
        <td>￥{$order['amount']}</td>
    </tr>
    {if $order['fee_name']}
    <tr>
        <td colspan="4" class="text-right">{$order['fee_name']}：</td>
        <td>￥{$order['fee']}</td>
    </tr>
    {/if}
    <tr>
        <td colspan="4" class="text-right">实付金额：</td>
        <td class="text-danger">￥{php} echo sprintf('%.2f', $order['amount'] + $order['fee']){/php}</td>
    </tr>
    </tbody>
</table>